//当添加Icon样式的时候，需要更新index.html的iconfont样式。
import * as url from "node:url";

const menuIcon = {
    home: 'icon-shujuguanli', //主页
    analysis: 'icon-shujufenxi', //数据分析
    intelligent: 'icon-ChatGPT-blue', //Ai答疑
    userManager: 'icon-yonghuzhongxin', //用户管理
    integralStore: 'icon-shangdian', // 积分商店
    dataManager:'icon-a-0_shujuguanli',
}

//供左侧导航栏使用，渲染导航栏
const menuRouter = [
    {name: '首页', url: '/home', iconFontClass: menuIcon.home},
    { name: '个人信息管理', url: '/studentInfo' , iconFontClass: menuIcon.intelligent},
    { name: '统考信息查看', url: '/researchInfo' , iconFontClass: menuIcon.analysis},
    { name: '重难点信息查看', url: '/testEssentialsList' , iconFontClass: menuIcon.home},
    {
        name: '题目练习', url: '/question/list' , iconFontClass: menuIcon.integralStore,
        child: [
            {name:'题目列表',url:'/question/list'},
            {name:'练习',url:'/question/answer'},
        ]
    },
    {
        name: '答题记录管理', url: '/record/list' , iconFontClass: menuIcon.dataManager,
        child: [
            {name:'做题记录',url:'/record/list'},
            {name:'错题列表',url:'/record/err'},
        ]
    },
]

export default menuRouter;
